package com.itheima.d1_file;

import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;

public class FileTest3 {
    public static void main(String[] args) throws IOException {

        File f1 =new File("D:/resourse/itheima.txt");
        System.out.println(f1.createNewFile());

        File f2 =new File("D:/resourse/aaa");
        System.out.println(f2.mkdir());

        File f3 =new File("D:/resourse/abc/a");
        System.out.println(f3.mkdirs());

        System.out.println(f1.delete());
        System.out.println(f2.delete());


    }
}
